package testGroovy

def list = [1,2,2,4,5,6]

println list.collect { 
	if(it.value == 2) {
		it
	}
} - null
